package com.lebang.medicalInquiry.mapper;

import com.lebang.medicalInquiry.model.po.FigureVoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FigureVoiceMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FigureVoice record);

    int insertSelective(FigureVoice record);

    FigureVoice selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FigureVoice record);

    int updateByPrimaryKey(FigureVoice record);

    List<FigureVoice> getByLanguage(Integer activeLanguageId);

    List<FigureVoice> getList(@Param("kw") String keyWord, @Param("languageId") Integer languageId, @Param("sex") Integer sex, @Param("state") Integer state, @Param("page")int page, @Param("limit") Integer limit);

    Integer count(@Param("kw") String keyWord,@Param("languageId") Integer languageId, @Param("sex")Integer sex,@Param("state") Integer state);

    List<FigureVoice> getAll();
}